cmake_minimum_required(VERSION 3.10)

project(pikachu)
# 设置FindSDL2的搜索路径
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake")
# 找到SDL2 如果未找到，则失败
find_package(SDL2 REQUIRED)


#添加
include_directories(${SDL2_INCLUDE_DIR})

add_executable(pikachu main.c RectShape.c)


target_link_libraries(pikachu ${SDL2_LIBRARY})

set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR})
